1. Loperamide (Imodium) This medication can be used to decrease the frequency and urgency of diarrhea. It works by slowing down the movement in the gut, allowing for more water absorption. However, it’s essential to use it cautiously and consult a veterinarian beforehand, as it is not suitable for all dogs, especially those with certain types of infections or conditions.